package org.btik.light.meta.event.cmd;

import org.btik.light.meta.base.Command;

import java.util.ArrayList;
/**
 * @author lustre
 * @version 1.0
 * @since 2021/5/15 12:37
 * 字符串命令，无法同步，不能解析参数。和编码，只能发送字符串。
 */
public class SimpleCmd implements Command {
    private String sn;

    private String cmdStr;

    public void setTarget(String sn) {
        this.sn = sn;
    }

    public String getCmdStr() {
        return cmdStr;
    }

    public void setCmdStr(String cmdStr) {
        this.cmdStr = cmdStr;
    }

    @Override
    public String getTarget() {
        return sn;
    }

    @Override
    public int opCode() {
        return 0;
    }

    @Override
    public ArrayList getParams() {
        return null;
    }

    @Override
    public int getCmdId() {
        return -1;
    }
}
